﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CollegeShop.Infrastructure.Entities.Enum
{
    public static class EnumMapping
    {
        public static string Mapping(this SystemRole role)
        {
            switch (role)
            { 
                case SystemRole.Admin:
                    return "系统管理员";
                case SystemRole.Director:
                    return "区域主管";
                case SystemRole.Manager:
                    return "校区经理";
                case SystemRole.Staff:
                    return "楼栋销售";
                default:
                case SystemRole.User:
                    return "会员";
            }
        }
        public static string Mapping(this OrderState state)
        {
            switch (state)
            { 
                case OrderState.Cancel:
                    return "交易取消";
                case OrderState.Complete:
                    return "交易完成";
                case OrderState.Confirm:
                    return "等待付款";
                default:
                case OrderState.Payed:
                    return "等待配送";
            }
        }
    }
}
